<template>
  <div id="teacherinfo">
    <div class="main">
      <Row>
        <Col span="6" class="head">
          <!-- 头像 -->
          <Avatar size="62" :src="avatarHead.head" class="bordersize" />
        </Col>
        <Col span="18" class="info">
          <!-- 名字 -->
          <p class="name">{{avatarHead.name}}</p>
          <!-- 职位描述 -->
          <p class="desc">{{avatarHead.desc}}</p>
        </Col>
      </Row>
    </div>
  </div>
</template>

<script>
//导入iview-ui组件
import { Row, Col, Avatar } from "view-design";

export default {
  name: "teacherinfo",
  //组件注册
  components: {
    Row,
    Col,
    Avatar
  },
  //传入属性
  props:['avatarHead'],
  data() {
    return {
      
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部UI样式修改 */
.main {
}
.head {
  padding: 18px 20px;
  background-color: white;
}
.bordersize {
  border: 1px solid black;
  padding: 5px;
}
.info {
  padding: 30px 20px;
  background-color: white;
}
.name {
  font-size: 18px;
  color: black;
}
.desc {
  font-size: 12px;
  color: #888;
  padding-top: 8px;
}
</style>